package com.huixh.train.batch.controller;

import com.huixh.train.batch.client.BusinessClient;
import com.huixh.train.common.resp.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author huixh
 */
@RestController("/hello")
public class HelloController {
    @Autowired
    private BusinessClient businessClient;

    @GetMapping("/hello")
    public Result<String> hello() {
        return businessClient.sendHello();
    }
}
